
//
//  DCSendingHeaderView.m
//  JiuyaoMotorcade
//
//  Created by 大橙子 on 2018/11/29.
//  Copyright © 2018 Tomous. All rights reserved.
//

#import "DCSendingHeaderView.h"

@implementation DCSendingHeaderView
-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUpBaseHeaderView];
    }
    return self;
}

-(void)layoutSubviews {
    [super layoutSubviews];
    
    [self setBaseHeaderViewLayoutSubviews];
}
-(void)setModel:(DCOrderReceiveModel *)model {
    _model = model;
    
//    self.carrierLabel.text = model.carrier;
    self.carrierLabel.text = [UserInfo shareInstance].record.companyName;
    self.timeLabel.text = model.taskTime;
    //    self.stateLabel.text = model.type;
    if ([model.taskStatus integerValue] == 02) {
        self.stateLabel.text = @"运输中";
    }
    self.stateLabel.textColor = [UIColor redColor];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
